﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MilageMVC.ViewModel
{
    public class VehicleViewModel
    {
        public int VehicleID { get; set; }
        public string Name { get; set; }
        public string Year { get; set; }
        public string Make { get; set; }
        public string Mileage { get; set; }
        public string Units { get; set; }
        public string MilesPerUSGallon { get; set; }
        public string MilesPerImperialGallon { get; set; }



        public string DescriptiveText
        {
            get
            {
                string myVar = string.Format("  Year:{0}, {1}, {2}, {3} Us mpg, {4} UK mpg", this.Year, this.Mileage, this.Units, this.MilesPerUSGallon, this.MilesPerImperialGallon);

                return myVar;
            }

        }


    }
}